import { defineStore } from 'pinia';
export const useStore = defineStore('weChat', {
    state: () => ({
        id: "h5Store",
        tabbarIndex: 0,
    }),
    getters: {
        id: (state) => {
            return state.id
        }
    },
    actions: {
        increment(data: any) {
            console.log("data", data);
            this.id = data
        },
    },
    persist: true,
});
export default useStore